﻿using UnityEngine;

public class Gun : MonoBehaviour {

    public BulletPool BulletPool;
    public Transform Spawn;

    public void Start()
    {
        BulletPool = GameObject.Find("BulletPool").GetComponent<BulletPool>();
        
    }

    public void Fire()
    {
        BulletPool.Fire(Spawn.position, transform.parent.rotation.eulerAngles.y == 0);
    }
}
